<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    
</body>
<script>
    //声明一个高级函数(柯里化)  sum(1)(2)(3)
    //结果为6

    function  sum(n){
            return  (m)=>{
                return  (l)=>{
                        return  n+m+l;
                }
            }
    }
    let  result  = sum(1)(2)(3);
    alert(result);




</script>
</html>